//1. 公用样式
require("../../assets/css/index.less");

require("../../assets/fonts/iconfont.css");
let https = require("../../utils/https.js");
let local = require('../../utils/local')

//2. 当前页面样式
require("./courseDetails.less");

//3. 公用js
let dom = require("../../utils/dom.js");
//4. 当前页面的js
dom.ready(function () {
     let id=location.search.slice(1);
     //获取ajax
     https.get('/api/train/courseDetail',{id},function(res){
        console.log(res);
        if(res.errno==0){
            //渲染数据
            dom.getEle('#btn').addEventListener('click',function(){
                window.location.href='/coursevideo.html'
            })
        }
     })
});